package com.example.tests;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.example.fw.Contact;

public class TestContactCreation extends TestBase {
        
        @Test
        public void shouldCreateContactWithValidData() {
                Contact contact = new Contact().setFirstName("tester").setLastName("tester");
                app.getContactHelper().createContact(contact);
                Contact createContact = app.getContactHelper().getFirstContact();
                Assert.assertEquals(contact, createContact);
                
/*                try {
                        Thread.sleep(5000);
                } catch (InterruptedException e) { 
                        e.printStackTrace();
                }
*/                
        }

}
